package com.yuyue.springFramework.note01.entity;

/**
 * 实例工厂
 */
public class InstanceFactory {
    public OneClass getOneClass(){
        System.out.println("实例工厂获取OneClass实例");

        //创建并返回别的类的对象
        return new OneClass();
    }
}